import request from '@/config/request'
import { CvVideoCarouselSaveReqVO } from '@/types/carousel'

/**
 * 保存轮播图
 */
export const saveCarousel = (data: CvVideoCarouselSaveReqVO) => {
  return request.post({ url: '/platform/video/carousel/save', data })
}

/**
 * 获取轮播图列表
 */
export const getCarouselList = () => {
  return request.get({ url: '/platform/video/carousel/list' })
}

/**
 * 删除轮播图
 */
export const deleteCarousel = (id: number) => {
  return request.delete({ url: '/platform/video/carousel/delete', params: { id } })
}
